{% extends 'layout.html' %}

{% block title %}
    <title>角色主页</title>
{% endblock %}

{% block content %}
    <div class="panel panel-default">
        <!-- Default panel contents -->
        <div class="panel-heading">角色列表</div>
        <!-- Table -->
        <table class="table table-hover table-bordered">
            <tr>
                <th>序号</th>
                <th>角色名</th>
                <th>角色标识</th>
                <th>角色描述</th>
                <th>操作</th>
            </tr>
            {% for role in role_list %}
                <tr>
                    <td>{{ forloop.counter }}</td>
                    <td>{{ role.role_zh }}</td>
                    <td>{{ role.role_en }}</td>
                    <td>{{ role.mark }}</td>
                    <td>
                        <button class=" btn btn-primary btn-sm">编辑</button>
                        <button class=" btn btn-danger btn-sm">删除</button>
                    </td>
                </tr>
            {% endfor %}
        </table>
    </div>
{% endblock %}